<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script>
	function init(){
	
		document.getElementById("loading").style.display="none";
		
	}

	function closed(){
		window.close();
	}
	function maked(){
		
		document.getElementById("choice").style.display="none";
		document.getElementById("loading").style.display="block";
		
		location.href='makeBagic.action';
	}
	
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body onload="javascript:init()">
	<div id="choice">
	  	<s:if test="maxChapter > maxBagicFormula">
			<s:property value="maxBagicFormula+1"/>회 부터 <s:property value="maxChapter"/>회 까지 기본식을 생성 하시겠습니까?
			<br/>
			<input type="button" value="예" onclick="javascript:maked()"/>&nbsp;<input type="button" value="아니오" onclick="javascript:closed()"/>
		</s:if>
		<s:if test="maxChapter == maxBagicFormula">
			없데이트가 필요 없습니다
		</s:if>
		<s:if test="maxChapter <= maxBagicFormula">
			베이직에 문제가 있습니다
		</s:if>
	</div>
	<div id="loading">
		식이 실행 되고 있습니다...팝업창을 닫지 마삼 
	</div>
</body>
</html>